package com.uwantsoft.business.service.infrastructure;

import com.uwantsoft.business.facade.dto.parking.ParkOverviewQueryCondition;
import com.uwantsoft.business.service.domain.park.Park;
import com.uwantsoft.util.EntityRepository;
import org.joda.time.DateTime;

import java.util.List;

/**
 * @author LeiPeichen.
 */
public interface ParkRepository extends EntityRepository {

    public List<Park> findParks(ParkOverviewQueryCondition condition);

    public int findParkTotalAmount(ParkOverviewQueryCondition condition);

    public int findParkAmount(DateTime todayStart,DateTime todayEnd);

    List<Park> findParks(String region, String latitude, String longitude);
}
